import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '../components/HelloWorld'
import HelloChina from '../components/HelloChina'
import element from '../components/element'
import MyTable from '../components/MyTable'
import MyTable1 from "../components/MyTable1";
import MyTable2 from "../components/MyTable2";

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/hello',
      name: 'HelloC',
      component: HelloChina
    },
    {
      path: '/ele',
      name: 'ele',
      component: element
    },
    {
      path: '/MyTable',
      name: 'MyTable',
      component: MyTable
    },
    {
      path: '/MyTable1',
      name: 'MyTable1',
      component: MyTable1
    },
    {
      path: '/MyTable2',
      name: 'MyTable2',
      component: MyTable2
    }
  ]
})
